package cn.ibdsr.human.service;

import cn.ibdsr.human.db.model.Notification;
import cn.ibdsr.human.transfer.job.JobOperatorDTO;
import cn.ibdsr.human.transfer.notification.NotificaitonQueryDTO;
import cn.ibdsr.human.transfer.notification.NotificationDTO;
import cn.ibdsr.human.transfer.notification.NotificationListDTO;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 * 通知表 服务类
 * </p>
 *
 * @author cdl
 * @since 2022-03-26
 */
public interface INotificationService {

    NotificationListDTO getNotifications(NotificaitonQueryDTO notificaitonQueryDTO);

    Long save(Long userId, NotificationDTO notificationDTO);

    Long publishOrNot(Long userId, JobOperatorDTO jobSaveDTO);

    Long delete(Long userId, Long id);

    NotificationDTO getNotification(Long id);

    Long create(Long userId, NotificationDTO notificationDTO);
}
